#include <iostream>
#include<stdlib.h>
#include<stdio.h>
#include<time.h>
#include<windows.h>
using namespace std;
int t()
{
   int a,b;
   srand((unsigned int)time(NULL));
   a=rand()%6+1;
   b=rand()%6+1;
   return a+b;
}
int main()
{
    cout << "1代表大，2代表小，请选择1或2：" << endl;
    int n,b;
    cin>>n;
    b=n;
    while(b==1||b==2)
    {
    int a=t();
    cout<<"开奖中~~"<<endl;
    Sleep(1000);//沉睡种子
    cout<<a<<endl;
    if(b==1)
    {
        if(a>6) cout<<"恭喜你中奖了"<<endl;
        else cout<<"再接再励"<<endl;
    }
    else
    {
        if(a<=6) cout<<"恭喜你中奖了"<<endl;
        else cout<<"再接再励"<<endl;
    }
    cout<<"1代表大，2代表小,其它键表示结束抽奖，请继续"<<endl;
    cin>>b;
    }
    return 0;
}
